package com.zhoutao.blog.seven.model.response;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Comment {
    private Long id;

    private Long parentId;

    private String nickname;

    private String email;

    private String content;

    private Long refId;

    private String createdAt;

    private List<Comment> replyComment = new ArrayList<>();

    public void addSubComment(Comment comment) {
        this.replyComment.add(comment);
    }
}
